<%@page import="Helpers.ApplicationLogger"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript" src="Scripts/new.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<% if("edit".equalsIgnoreCase(request.getParameter("target"))) {%>
<h2>Редактирование профиля</h2>
<body onLoad="FieldManager.GetFields();">
<% }%>
<% if("reg".equalsIgnoreCase(request.getParameter("target"))) {%>
<h2>Регистрация</h2>
<% }%>
 			   <table>
			   <% if("reg".equalsIgnoreCase(request.getParameter("target"))) {%>
				 <tr>
				   <td><h1>Логин</h1></td>
				   <td><input id="Login" name="Login" type="text" size="20"></td>
				 </tr>
				 <% }%>
				 <tr>
				   <td><h1>Пароль</h1></td>
				   <td><input id="Password1" name="Password1" type="password" size="20"></td>
				 </tr>
				 <tr>
				   <td><h1>Подтвердите пароль</h1></td>
				   <td><input id="Password2" name="Password2" type="password" size="20"></td>
				 </tr>
				  <tr>
				   <td><h1>Имя</h1></td>
				   <td><input id="FirstName" name="FirstName" type="text" size="20"></td>
				 </tr>
				  <tr>
				   <td><h1>Отчество</h1></td>
				   <td><input id="MiddleName" name="MiddleName" type="text" size="20"></td>
				 </tr>
				  <tr>
				   <td><h1>Фамилия</h1></td>
				   <td><input id="SecondName" name="SecondName" type="text" size="20"></td>
				 </tr>
				  </tr>
				  <tr>
				   <td><h1>Пол</h1></td>
				   <td>
						<input type="radio" id = "Gender" name="Gender" value="male"> </h1>Мужской</h1><Br>
						<input type="radio" id = "Gender" name="Gender" value="female"> </h1>Женский</h1><Br>
				   </td>
				 </tr>
				  </tr>
				  <tr>
				   <td><h1>Возраст</h1></td>
				   <td><input id="Age" name="Age" type="text" size="20"></td>
				 </tr>
			   </table>

<% if("reg".equalsIgnoreCase(request.getParameter("target"))) {%>
<input type="button" value="Зарегистрироваться" onclick="RegistrationManager.Verify($('#Login').val(),$('#Password1').val(),$('#Password2').val(),$('#FirstName').val(),$('#MiddleName').val(),$('#SecondName').val(),$('input:radio[name=Gender]:checked').val(),$('#Age').val());">
<% }%>
<% if("edit".equalsIgnoreCase(request.getParameter("target"))) {%>
<input type="button" value="Изменить данные" onclick="ChangeManager.Change($('#Login').val(),$('#Password1').val(),$('#Password2').val(),$('#FirstName').val(),$('#MiddleName').val(),$('#SecondName').val(),$('input:radio[name=Gender]:checked').val(),$('#Age').val());">
<% }%>


